package cn.yitun.chat.yitunservercommonlib.converter.dto2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupCategoryDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupCategoryVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupCategoryDto2VoConverter {
    GroupCategoryDto2VoConverter INSTANCE = Mappers.getMapper(GroupCategoryDto2VoConverter.class);

    GroupCategoryDto vo2dto(GroupCategoryVo vo);

    List<GroupCategoryDto> vo2dto(List<GroupCategoryVo> voList);

    @InheritInverseConfiguration
    GroupCategoryVo dto2vo(GroupCategoryDto dto);
    @InheritInverseConfiguration
    List<GroupCategoryVo> dto2vo(List<GroupCategoryDto> dtoList);
}
